import { defineView } from "@/routers/tools.mjs";

/**
 * @type {DefineView}
 */
const DCompilerView = defineView({
  template: /* HTML */ html` <d-compiler></d-compiler> `,
});

export default DCompilerView;

// # use compile
// var $compile = ...; // injected into your code
// var scope = ...;
// var parent = ...; // DOM element where the compiled template can be appended

// var html = '<div ng-bind="exp"></div>';

// // Step 1: parse HTML into DOM element
// var template = $(html);

// // Step 2: compile the template
// var linkFn = $compile(template);

// // Step 3: link the compiled template with the scope.
// var element = linkFn(scope);

// // Step 4: Append to DOM (optional)
// parent.appendChild(element);
